import request from '@/utils/request'

// 查询会员申请商品积分列表
export function listMemberCommodity(query) {
  return request({
    url: '/member/memberCommodity/list',
    method: 'get',
    params: query
  })
}

// 查询会员申请商品积分详细
export function getMemberCommodity(id) {
  return request({
    url: '/member/memberCommodity/' + id,
    method: 'get'
  })
}

// 新增会员申请商品积分

export function addMemberCommodity(data) {
  return request({
    url: '/member/memberCommodity',
    method: 'post',
    data: data
  })
}

// 修改会员申请商品积分

export function updateMemberCommodity(data) {
  return request({
    url: '/member/memberCommodity',
    method: 'put',
    data: data
  })
}

// 删除会员申请商品积分

export function delMemberCommodity(id) {
  return request({
    url: '/member/memberCommodity/' + id,
    method: 'delete'
  })
}

// 导出会员申请商品积分

export function exportMemberCommodity(query) {
  return request({
    url: '/member/memberCommodity/export',
    method: 'get',
    params: query
  })
}
